﻿<%@ Page Title="" Language="C#" MasterPageFile="~/HRSys.Master" AutoEventWireup="true"
    CodeBehind="EditUserAuthority.aspx.cs" Inherits="HRWebSite.Sys.EditUserAuthority" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title id="Title1" runat="server">用户权限</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" CellPadding="4" DataKeyNames="NumberID" 
        DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="both">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="NumberID" HeaderText="编号" ReadOnly="True" 
                SortExpression="NumberID" />
            <asp:BoundField DataField="UserName" HeaderText="登录名" 
                SortExpression="UserName" />
            <asp:BoundField DataField="Name" HeaderText="姓名" SortExpression="Name" />
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <%#"<a href='javascript:void(0)' onclick=\"window.open('ModifyUserAuthority.aspx?NumID=" + Eval("NumberID").ToString() + "',\'newwindow\',\'height=340,width=603,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no')\">"+"编辑</a>"%>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:HRSys %>" 
        SelectCommand="SELECT * FROM [User]"></asp:SqlDataSource>
</asp:Content>
